#include <stdio.h>
#include <stdlib.h>
#include <csp_spu.h>
#include <csp_debug.h>

int fact(int n){
	if(0 == n){
		return 1;
	}
	return n * fact(n-1);
}

int Run(){
	int res;
	PRINTF_FOR_TESTING("fact_tast start\n");
	res = fact(10);
	
	ASSERT(3628800 == res);

	PRINTF_FOR_TESTING("fact_tast end: 3628800=%i\n", res);
	return res;
}

